home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_riv_splashparticlelil.cog < prev    next >
Text File  |  1999-11-15  |  2KB  |  82 lines

  1. # Jones 3D Cog Script
  2. #
  3. # RIV_splashparticlelil.cog
  4. #
  5. # gimme a particle with that splash there, Guido...
  6. #
  7. #
  8. #
  9. # [PAZ] [GGJ] modified per Steve Scholl 7/7/99
  10. #
  11. # (C) 1999 LucasArts Entertainment Co. All Rights Reserved
  12. #========================================================================================
  13.  
  14. symbols
  15.  
  16.  
  17.     message         created
  18.     message            sighted
  19.     message            pulse            
  20.  
  21.     thing            spritething                local
  22.     thing            player                    local
  23.     
  24.     flex            pulsetime                local
  25.     
  26.     template        splashA=spritlemist        local
  27.     
  28.     sound            sound0=riv_h2o_lap_a.wav    local
  29.     
  30. end
  31.  
  32. #........................................................................................
  33.  
  34. code
  35.  
  36. created:
  37.  
  38.     spritething = GetSenderRef();
  39.     #PlaySoundThing(sound0, spritething, 0.8, 1.0, 10.0, 0x01);
  40.     return;
  41.  
  42. #........................................................................................    
  43.  
  44. sighted:
  45.  
  46.     spritething = GetSenderRef();
  47.  
  48.     pulsetime = RandBetween(1, 4);
  49.     SetThingPulse(spritething, pulsetime);
  50.     
  51.     return;
  52.         
  53. #........................................................................................
  54.  
  55. pulse:
  56.  
  57.     player = GetLocalPlayerThing();   
  58.     
  59.     spritething = GetSenderRef();
  60.  
  61.     CreateThing(splashA, spritething);
  62.     pulsetime=RandBetween(1, 4);
  63.     
  64.     if (HasLOS(player, spritething) == 1)
  65.         {
  66.         SetThingPulse(spritething, pulsetime);
  67.         return;
  68.         }
  69.         
  70.     else
  71.         {
  72.         SetThingPulse(spritething, 0);
  73.         ClearThingFlags(spritething, 0x100000);
  74.         return;
  75.         }
  76.         
  77.     return;
  78.     
  79. #........................................................................................
  80.     
  81. end
  82.